{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('web/index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li>
			<strong>会员列表</strong>
		</li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal " method="post" action="{:url('index')}">	
			<div class="form-group">
            	<label class="col-sm-1 control-label">姓名</label>
	            <div class="input-group  col-sm-7">
	                 <input type="text" id="real_name" name='real_name' class="form-control"/> 
	            </div>
            </div>
            <div class="form-group">
            	<label class="col-sm-1 control-label">手机号</label>
	            <div class="input-group  col-sm-7">
	                 <input type="text" id="mobile" name='mobile' class="form-control"> 
	            </div>
            </div>
			<div class="form-group" style="padding-left: 180px;">
					<span class="bank"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
			</div>
		</form>
		<a href="{:url('add')}" class="btn btn-xs btn-primary">添加</a>
		<a href="{:url('padd')}" class="btn btn-xs btn-primary">导入</a>
		<a href="{:url('dc',['data'=>'1'])}" class="btn btn-xs btn-primary">导出</a>
		<button type="button" onclick="setStatus('{:url('dels')}')" class="btn btn-xs btn-danger">批量删除</button>
		<form method="post" id="index-form" action=""  >
            <div class="example-wrap">
				<div class="example">				
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
								<th width="50" class="center">
									<label class="position-relative">
										<input id="chks" name="chks" class="ace" type="checkbox">
										<span class="lbl"></span>
									</label>
								</th>
                                <th>姓名</th>
                                <th>手机号</th>
								<th>积分</th>
								<th>余额</th>
                                <th>注册时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr style="text-align: center;">
                        		<td><input type="checkbox" name="chk[]" value="{$ad.id}" class="ace"/></td>
                        		<td>{$ad.real_name}</td>
                        		<td>{$ad.mobile}</td>
								<td><span id="score_{$ad.id}">{$ad.credit1}</span></td>
                        		<td><span id="balance_{$ad.id}">{$ad.credit2}</span></td>
                        		<td>{$ad.add_time}</td>
                        		<td>	
                        			<a href="#" onclick="chongzhi_member({$ad.id},1,{$ad.mobile})" class="btn btn-info bnt-sm">
									<i class="fa fa-paste"></i> 积分充值</a>&nbsp;&nbsp; 
                        			<a href="{:url('memberInfo',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 充值记录</a>&nbsp;&nbsp; 
									<a href="{:url('edit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp; {if condition="$vo.id neq 1"}
									{/if}
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
    	 </form>       
	</div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
// 批量设置

</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}